package org.example.examsystem.service;

import org.example.examsystem.entity.Exam;
import org.example.examsystem.entity.StudentExam;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ExamService {
    Page<Exam> getExams(Pageable pageable);
    void addExam(Exam exam);
    void updateExam(Exam exam);
    void deleteExam(int id);
    // 新增的批量删除考试的方法
    void batchDeleteExams(List<Integer> ids);
    Exam saveExam(Exam exam);
    Exam getExamById(int eid);
    Exam getExamDetailsById(Integer examId);
    StudentExam submitExam(Integer examId, Integer userId, List<String> answers);

    Exam getAnsweredExamDetails(Integer examId);
}

